<div class="content" style="width:600px;margin:0 auto;">
	<dl class="n-block n-form">
		<form action="<?=n_url('passport','doreg')?>" onsubmit="return doreg();">
			<div class="n-tips">&nbsp;</div>
			<dt>手机:</dt>
			<dd><input id="mphone" type="text" name="mphone" value="13661386113" /></dd>
			<dt>密码:</dt>
			<dd><input id="password" type="password" name="password" value="123123" /></dd>
			<dt>确认密码:</dt>
			<dd><input id="repassword" type="password" name="repassword" value="123123" /></dd>
			<dt>验证码：</dt>
			<dd>
				<input id="vcode" type="text" name="vcode" style="width: 50px;" />
				<img src="<?=n_url('common','vcode')?>" />
			</dd>
			<dt>&nbsp;</dt>
			<dd>
				<input type="submit" value="注册账号，并编辑用户信息" />
				<a href="<?=n_url('passport','login')?>">已有账号，我要登陆</a>
				<?php
				if('Y'==$data['isopen_email']){
				?>
				<a href="<?=n_url('passport','reg')?>">邮箱注册</a>
				<?php
				}
				?>

			</dd>
			
		</form>
	</dl>
	<script>
		function doreg(){
			var mphone = $("#mphone").val();
			var password = $("#password").val();
			var repassword = $("#repassword").val();
			var vcode = $("#vcode").val();
			$.getJSON("/passport/doreg.html",{mphone:mphone,password:password,repassword:repassword,vcode:vcode},function(rs){
				
				$(".n-tips").html(rs.msg);
				if(rs.state){
					location.href="/member/init.html";
				}
			});
			return false;
		}
	</script>
</div>